<%@page import="java.util.ArrayList"%>
<%@page import="custom.User"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>All Users</title>
</head>
<body>

	<%@ include file="header.jsp" %>
	<center><div style="width: 800px; background-color:rgb(256, 256, 230)" align="left">
		<%if ( !( (User)session.getAttribute("user") ).areYouAdmin() ) {%>
				You have no right to visit this page
		<%}else{%>
				<p align="center"> All Users </p>
		<%
				ArrayList<Integer> userIds = User.getAllUsers();
				for(int i=0; i< userIds.size(); i++){
					out.print(User.getPictureNameHtml(userIds.get(i)));
				}
		}%>
	</div></center>
</body>
</html>